package cn.com.bluemoon.daps.model.core.file.export;

import cn.com.bluemoon.daps.model.core.file.parser.FileType;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

import javax.annotation.Nullable;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotNull;
import java.io.File;

/**
 * 文件导出载体
 *
 * @author Jarod.Kong
 * @date 2021/3/23 9:31
 */
@Builder
@ToString
@Getter
public class FileExport {
    @NotNull
    private final File file;
    @Nullable
    private final String fileName;

    private final HttpServletResponse httpServletResponse;

    /**
     * 定义文件类型，用于对应的转换文件流
     */
    private final FileType fileType;


}
